import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: -1,
      title: '首页',
    },
    name: 'Dashboard',
    path: '/analytics',
    children: [
      {
        name: 'analytics',
        path: '/analytics',
        component: () => import('#/views/dashboard/home/index.vue'),
        meta: {
          affixTab: true,
          hideInMenu: true,
          icon: 'lucide:area-chart',
          title: '首页',
        },
      },
      // {
      //   name: 'Analytics',
      //   path: '/analytics',
      //   component: () => import('#/views/dashboard/analytics/index.vue'),
      //   meta: {
      //     affixTab: true,
      //     icon: 'lucide:area-chart',
      //     title: $t('page.dashboard.analytics'),
      //   },
      // },
      // {
      //   name: 'Workspace',
      //   path: '/workspace',
      //   component: () => import('#/views/dashboard/workspace/index.vue'),
      //   meta: {
      //     title: $t('page.dashboard.workspace'),
      //   },
      // },
    ],
  },
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: 999,
      title: '用户中心',
      hideInMenu: true,
    },
    name: 'UserCenters',
    path: '/user/center',
    children: [
      {
        name: 'UserCenter',
        path: '/user/center',
        component: () => import('#/views/_core/user-center/index.vue'),
        meta: {
          hideInMenu: true,
          icon: 'lucide:info',
          title: '个人中心',
        },
      },
    ],
  },
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: 999,
      title: '关于',
    },
    name: 'Abouts',
    path: '/about',
    children: [
      {
        name: 'About',
        path: '/about',
        component: () => import('#/views/_core/about/index.vue'),
        meta: {
          hideInMenu: true,
          icon: 'lucide:info',
          title: '关于',
        },
      },
    ],
  },
];

export default routes;
